package com.bgs.travelapp.papersType.service.impl;

import com.bgs.travelapp.page.MyPageHelper;
import com.bgs.travelapp.page.PageRequest;
import com.bgs.travelapp.page.PageResult;
import com.bgs.travelapp.papersType.entity.PapersTypeEntity;
import com.bgs.travelapp.papersType.service.PapersTypeService;
import com.bgs.travelapp.papersType.mapper.PapersTypeMapper;
import com.bgs.travelapp.result.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PapersTypeServiceImpl implements PapersTypeService {

    @Autowired
    PapersTypeMapper papersTypeMapper;

    /**
     * 获取身份证件列表
     * lzy 2022-8-18 15点01分
     * @return
     */
    @Override
    public CommonResult getPapersTypeList() {
        List<PapersTypeEntity> papersTypeEntityList = papersTypeMapper.selectAll();
        return CommonResult.ok(papersTypeEntityList);
    }
}
